﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Expect.Core.Errors
{
    /// <summary>
    /// The kind of format problem
    /// </summary>
    public enum FixtureFormatErrorKind
    {
        /// <summary>
        /// Misc. format error
        /// </summary>
        Miscellaneous,
        /// <summary>
        /// The number of cells doesn't match expectations
        /// </summary>
        NumberOfCellsInvalid    
    }

    /// <summary>
    /// Error attached when fixture format is invalid
    /// </summary>
    public class InvalidFixtureFormatError : NFitError
    {
        /// <summary>
        /// Kind of formatting problem
        /// </summary>
        public FixtureFormatErrorKind Kind { get; set; }
            
        /// <summary>
        /// Constructor of <see cref="InvalidFixtureFormatError"/>
        /// </summary>
        /// <param name="kind"></param>
        public InvalidFixtureFormatError(FixtureFormatErrorKind kind)
        {
            Kind = kind;
        }
    }
}
